HAL PSSI migration: List of applicable concepts ¶
This section provides information about the HAL PSSI applicable architecture concepts.
Concepts for PSSI ¶
|
Concept |
Description |
|---|---|
|
The initialization has been split into separate init and config steps:
|
|
|
Removal and conversion of init structure to configuration structure |
The legacy init structure has been removed. Configuration is expressed through typed structs passed to feature-specific APIs. |
|
The handle structure has been renamed to
|
|
|
The structure
|
|
|
The functions
|
|
|
New APIs have been introduced to get and set PSSI features. |
|
|
DMA configuration and linking are explicit using PSSI APIs:
|
|
|
Individual callback registration APIs replace global register and unregister functions |
The callback registration is handled by specific functions for each PSSI event. These functions are used to register callback functions for different PSSI events. |
|
The PSSI state machine has been reworked to ensure transitions of the peripheral functional states. |
|
|
The HAL PSSI functions were updated to return:
|
|
|
Rename the error management function to
|
|
|
All TypeDef parts of the HAL PSSI driver have been removed and replaced by
|
|
|
Const keywords have been added to non-modifiable pointers to ensure that either the pointer itself or the data it points to cannot be modified. This enhances code safety and readability, prevents unintended modifications, and renders code more robust and maintainable. |
|
|
The parameters and state are checked using
|
|
|
Provide RTOS-compatible acquire/release bus services for communication peripheral drivers. |
New functions,
|
|
Add HAL PPP Services for Drivers with Handle to Retrieve Corresponding Peripheral Clock Frequency. |
The HAL PSSI driver provides a new API to retrieve the clock frequency:
|
|
Replace Finite Parameter Defines (Including PPP Instances) with Enum Types at HAL Levels. |
Finite parameters (including PSSI instances) have been converted into enumerated types (enums) at HAL level. This improves code readability, maintainability, and type safety. |
|
Add HAL_PPP Prefix to All HAL Peripheral APIs (Defines, Macros, Types, and Functions). |
All HAL PSSI APIs start with
|